<?php
class Bbling_Model_Collection_Payment extends Evebit_Model_Mysql_Collection{
	
	public function _initSelect(){
		$this->getSelect()->from(array('main_table'=>'payment'));
        
		$userEntity = new User_Model_Entity_User();
		$userFields = $userEntity->getResource()->getTableFields();
		$this->getSelect()->join(array('user_table'=>'user'), 'main_table.user_id = user_table.id', $userFields);
		
		return $this;
	}
	
}